package com.share.hope.service;

import com.share.hope.entity.result.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface CommonService {

    R<String> uploadAvatar(MultipartFile file) throws IOException;

    void viewImage(String path, HttpServletResponse response) throws IOException;

    /**
     * 图像无损放大
     */
    void imgAmplify(MultipartFile file, HttpServletResponse response) throws IOException;

    /**
     * 人像动漫化
     */
    void imgAnime(MultipartFile file, HttpServletResponse response) throws IOException;
}
